<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>购物车</title>
</head>

<body>
  <h1>购物车</h1>
  <ul>
    {% for item in cart.items.all %}
    <li>{{ item.product.name }} - 数量: {{ item.quantity }}</li>
    {% endfor %}
  </ul>
  <p><a href="{% url 'product_list' %}">返回商品列表</a></p>
  <p><a href="{% url 'manage_products' %}">商品管理</a></p>
</body>

</html>